const {
  mysql
} = require('../qcloud');

module.exports = async ctx => {
  //   console.log(ctx.request.body);
  let list = ctx.request.body;
  await mysql('music').insert({
    name: list.songName,
    song_url: list.songUrl,
    img_url: list.imgUrl,
    singer: list.singer,
    type: list.type
  })
  ctx.state.data = {
    msg: 'success'
  }
}
